#!/usr/bin/python

import sys

for eachLine in sys.stdin:
    eachLine = eachLine.strip()
    if(eachLine.split("\t")[0] == "*" and eachLine.split("\t")[1]=="*"):
        print eachLine 
